package com.hdoit.ares.logical.acc.model;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Entity;
import javax.persistence.Transient;

import com.tennetcn.common.message.ModelBase;
/**
 * @author      lvsi
 * @email       
 * @createtime  2017年12月19日 10:19:36
 * @comment
 */
@Entity
@Table(name="acc_golden_bean_detail")
public class GoldenBeanDetail extends ModelBase{
    //主键
    @Id
    @Column(name="id")
    private String id;

    //账户号
    @Column(name="accountNo")
    private String accountNo;

    //交易类型
    @Column(name="goldenBeanType")
    private String goldenBeanType;

    //交易时间
    @Column(name="time")
    private Date time;

    //收入/支出
    @Column(name="state")
    private String state;

    //交易数目
    @Column(name="goldenBeanAccount")
    private double goldenBeanAccount;

    //剩余金豆
    @Column(name="goldenBeanBalance")
    private double goldenBeanBalance;

    //购买人
    @Column(name="purchaser")
    private String purchaser;

    //购买产品
    @Column(name="purchasedProduct")
    private String purchasedProduct;

    //商业险保费
    @Column(name="commercialInsurance")
    private double commercialInsurance;

    //客户主键
    @Column(name="customerId")
    private String customerId;

    //交易单号
    @Column(name="outTradeNo")
    private String outTradeNo;

    //交易内容
    @Column(name="comment")
    private String comment;

    //微信交易单号
    @Column(name="paymentNo")
    private String paymentNo;

    //犹豫期
    @Column(name="hesitatePeriod")
    private int hesitatePeriod;

    //犹豫期状态
    @Column(name="hesitatePeriodState")
    private String hesitatePeriodState;
    
    //分配的百分比
    @Column(name="percent")
    private double percent;
    
    //客户编号
    @Transient
    private Integer userIdentity;
    
    //客户名
    @Transient
    private String customerName;
    
    //收入
    @Transient
    private double incomeMoney;
    
    //支出
    @Transient
    private double expendMoney;
    
    //犹豫期income 总额
    @Transient
    private Double sumgolden;

    public Integer getUserIdentity() {
		return userIdentity;
	}
	public void setUserIdentity(Integer userIdentity) {
		this.userIdentity = userIdentity;
	}
	public String getCustomerName() {
		return customerName;
	}
	public void setCustomerName(String customerName) {
		this.customerName = customerName;
	}
	public double getIncomeMoney() {
		return incomeMoney;
	}
	public void setIncomeMoney(double incomeMoney) {
		this.incomeMoney = incomeMoney;
	}
	public double getExpendMoney() {
		return expendMoney;
	}
	public void setExpendMoney(double expendMoney) {
		this.expendMoney = expendMoney;
	}
	public String getId(){
        return this.id;
    }
    public void setId(String id){
         this.id=id;
    }

    public String getAccountNo(){
        return this.accountNo;
    }
    public void setAccountNo(String accountNo){
         this.accountNo=accountNo;
    }

    public String getGoldenBeanType(){
        return this.goldenBeanType;
    }
    public void setGoldenBeanType(String goldenBeanType){
         this.goldenBeanType=goldenBeanType;
    }

    public Date getTime(){
        return this.time;
    }
    public void setTime(Date time){
         this.time=time;
    }

    public String getState(){
        return this.state;
    }
    public void setState(String state){
         this.state=state;
    }

    public double getGoldenBeanAccount(){
        return this.goldenBeanAccount;
    }
    public void setGoldenBeanAccount(double goldenBeanAccount){
         this.goldenBeanAccount=goldenBeanAccount;
    }

    public double getGoldenBeanBalance(){
        return this.goldenBeanBalance;
    }
    public void setGoldenBeanBalance(double goldenBeanBalance){
         this.goldenBeanBalance=goldenBeanBalance;
    }

    public String getPurchaser(){
        return this.purchaser;
    }
    public void setPurchaser(String purchaser){
         this.purchaser=purchaser;
    }

    public String getPurchasedProduct(){
        return this.purchasedProduct;
    }
    public void setPurchasedProduct(String purchasedProduct){
         this.purchasedProduct=purchasedProduct;
    }

    public double getCommercialInsurance(){
        return this.commercialInsurance;
    }
    public void setCommercialInsurance(double commercialInsurance){
         this.commercialInsurance=commercialInsurance;
    }

    public String getCustomerId(){
        return this.customerId;
    }
    public void setCustomerId(String customerId){
         this.customerId=customerId;
    }

    public String getOutTradeNo(){
        return this.outTradeNo;
    }
    public void setOutTradeNo(String outTradeNo){
         this.outTradeNo=outTradeNo;
    }

    public String getComment(){
        return this.comment;
    }
    public void setComment(String comment){
         this.comment=comment;
    }

    public String getPaymentNo(){
        return this.paymentNo;
    }
    public void setPaymentNo(String paymentNo){
         this.paymentNo=paymentNo;
    }

    public int getHesitatePeriod(){
        return this.hesitatePeriod;
    }
    public void setHesitatePeriod(int hesitatePeriod){
         this.hesitatePeriod=hesitatePeriod;
    }

    public String getHesitatePeriodState(){
        return this.hesitatePeriodState;
    }
    public void setHesitatePeriodState(String hesitatePeriodState){
         this.hesitatePeriodState=hesitatePeriodState;
    }
	public Double getSumgolden() {
		return sumgolden;
	}
	public void setSumgolden(Double sumgolden) {
		this.sumgolden = sumgolden;
	}
	public double getPercent() {
		return percent;
	}
	public void setPercent(double percent) {
		this.percent = percent;
	}
	
    
}